<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
<title>通知内容</title>
<link href="/SmartCommunity/css/wechat/main.css" rel="stylesheet">
<script src="/SmartCommunity/js/wechat/iscroll.js"></script>
<script src="/SmartCommunity/js/wechat/pullToRefresh.js"></script>
</head>
<body onload="aa();">
<div class="SpecialTop info-fixed">
	<a class="back" href="javascript:history.back();"></a>
   <div class="renzheng">通知内容</div>
</div>
<div style="visibility:hidden;height:45px"></div>
    <h2 class="rich_media_title">通知内容</h2>
    <p class="rich_media_meta_text">2015-11-21</p>
	<div class="info_con"/>
	
	<div>
<script src="/SmartCommunity/js/wechat/jquery-2.2.0.min.js" type="text/javascript"></script>
<script type="text/javascript">
function aa(){
//var a=request.getAttribute("infoid");
var v = parseUrl();//解析所有参数
var info_id=v['infoid'];
 $.ajax({
	type: "POST",
		url: "/SmartCommunity/wechat/get_notice?infoid="+info_id,
		//data:{infoid:info_id},
		//dataType:"json",
		contentType: "application/json; charset=utf-8", 
		success: function(data){
			var arr = eval('[' + data + ']');
			for(var i=0;i<arr.length;i++)
			{
				$(".info_cont").text(arr[i].content);
				$(".rich_media_meta_text").text(arr[i].create_time);
				$(".rich_media_title").text(arr[i].title);
				$(".info_con").html(arr[i].content);
			}
		},
		error: function(){
		alert("网络请求失败");
		} 
 });
 }
 function parseUrl(){
                var url=location.href;
                var i=url.indexOf('?');
                if(i==-1)return;
                var querystr=url.substr(i+1);
                var arr1=querystr.split('&');
                var arr2=new Object();
                for  (i in arr1){
                    var ta=arr1[i].split('=');
                    arr2[ta[0]]=ta[1];
                }
                return arr2;
            }
</script>

</body>
</html>